<?php
	// Includes obligatorios
	include ('./dbconfig.php');
	include ('../Libraries/Tools/JLTools.class.php');
	
	// Objeto JLTools
	$jl = new JLTools();
	
	if(isset($_GET['id'])) $where = " WHERE int_id_sections_view = '".$_GET['id']."'";
	
	$SQL = "SELECT 
      tbl_membres.int_id_membres,
      tbl_membres.txt_photo_html,
      tbl_membres.var_noms,
      tbl_membres.var_status,
      tbl_membres.var_dates,
      tbl_membres.int_mem_order,
      tbl_states.var_htmldesc
    FROM
      tbl_states
      INNER JOIN tbl_membres ON (tbl_states.int_id_state = tbl_membres.int_id_state) ".$where;
	$campoId = "int_id_membres";
 
	$jl->dataGridJSON( $cnn, $SQL, $campoId ); 

	// Cerrar la coneccion obligatorio
	mysql_close($cnn); 
?>